<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="__INDEX__/css/mui.min.css" rel="stylesheet" />
		<link href="__INDEX__/css/Phoebe.css" rel="stylesheet" />
		<link href="__INDEX__/css/all.css" rel="stylesheet" />
		<link href="http://at.alicdn.com/t/font_r4hllapx8ijdobt9.css" rel="stylesheet" />
		<link href="__INDEX__/css/my-center.css" rel="stylesheet" />

		<style>
			.out {
				display: block;
				width: 40%;
				left: 30%;
				margin-top: 30px;
				background: transparent;
				color: #007AFF;
				border: 1px solid #007AFF;
				border-radius: 5px;
				margin: 0 auto;
				text-align: center;
				line-height: 40px;
				margin-top: 40px;
			}
			
			.mui-bar-nav>span {
				float: right;
				width: 40px;
				height: 40px;
				background: url("__PUBLIC__/static/images/logo.jpg") no-repeat;
				background-size: 25px 25px;
				background-position: 7.5px 8.5px;
				position: relative;
			}
			
			.mui-bar-nav>span>b {
				position: absolute;
				top: 5px;
				right: 2px;
				width: 15px;
				height: 15px;
				font-weight: 500;
				color: #fff;
				background: #E4393C;
				font-size: 12px;
				line-height: 15px;
				text-align: center;
				border-radius: 50%;
			}
			
			.mui-bar-nav>span>a {
				display: block;
				height: 40px;
			}
			
		</style>
		<title>个人中心</title>
	</head>

	<body style="margin-top: 45px;">
		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">个人中心</h1>
			<span><a href="{:url('member/member')}"></a>
			</span>
		</header>
		<!--个人中心-->
		<div class="my-center">
			<div>
				<div>
					<img src="{$user_info.thumb?$user_info.thumb:'__PUBLIC__/template/images/qph.png'}" alt="" />
				</div>
				<div>
					<p>
						<a href="{:url('member/member')}">编辑资料</a>
					</p>
					<p style="text-align: right;font-size: 14px">邀请码：<span>{$user_info['id']}</span></p>
				</div>
			</div>
		</div>
		<div class="gb-box">
			<p>
				<a href="{:url('member/my_wallet')}">我的钱包</a>
			</p>
			<p>
				<a href="{:url('index/retrun_pwd')}">修改密码</a>
			</p>
			<p>
				<a href="{:url('member/add_bankc')}">银行卡管理</a>
			</p>
			<p>
				<a href="{:url('member/my_stock')}">我的进货</a>
			</p>
			<p>
				<a href="{:url('member/my_market')}">我的出售</a>
			</p>
			<p>
				<a href="{:url('member/my_subscribe')}">我的申购</a>
			</p>
			<p>
				<a href="{:url('member/my_vip')}">我的会员</a>
			</p>
			<p>
				<a href="{:url('member/invitation')}">邀请好友</a>
			</p>
			<p>
				<a href="{:url('member/help_list')}">帮助中心</a>
			</p>
			<p><a id='login_out'>退出登录</a>
				</p>
			<input type="hidden" id="clear_cache" value="1">
			<!--<button>退出登录</button>-->
		</div>

		<nav class="mui-bar mui-bar-tab" id="footer-list">
			<a class="mui-tab-item" href="{:url('index/index')}">
				<span class="mui-icon iconfont icon-shouye"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a class="mui-tab-item " href="{:url('index/market')}">
				<span class="mui-icon iconfont icon-heilongjiangtubiao09"></span>
				<span class="mui-tab-label">市场</span>
			</a>
			<a class="mui-tab-item" href="{:url('index/ck')}">
				<span class="mui-icon iconfont icon-cangku1"></span>
				<span class="mui-tab-label">持仓</span>
			</a>
			<a class="mui-tab-item mui-active" href="{:url('member/index')}">
				<span class="mui-icon iconfont icon-wode1"></span>
				<span class="mui-tab-label">我的</span>
			</a>
		</nav>

		<div class="center-model">
			<div class="bdsharebuttonbox">
				<ul class="fenxiang">
					<img width="93%" style="margin:0 auto" id="img_qr" src="">
				</ul>
				<p>取消</p>
			</div>
		</div>
	</body>
</html>
{include file="public/footer" /}
<script>
	$("#login_out").click(function(){
		layer.confirm('您确定要退出吗？', {
			btn: ['确定', '取消'] //按钮
		}, function() {
			$.ajax({
				url: "{:url('index/index/logout')}",
				data: {},
				success: function(data) {
					layer.msg("退出成功", {
						icon: 1,
						time: 1000
					}, function() {
						window.location.href = data.url;
					});
				}
			})
		})
	});
</script>
<script type="text/javascript">
		mui.init();
		var aniShow = "pop-in";
		//页面跳转
		mui('#footer-list').on('tap', 'a', function() {
			var id = this.getAttribute('href');
			var href = this.href;
			mui.openWindow({
				id: id,
				url: this.href,
				show: {
					aniShow: aniShow
				},
				waiting: {
					autoShow: false
				}
			});
		});
	</script>